package ynu.edu.order.client;

import org.springframework.stereotype.Component;
import ynu.edu.common.result.Result;
import ynu.edu.order.vo.MerchantVO;

/**
 * 商家服务Feign客户端降级处理
 */
@Component
public class MerchantClientFallback implements MerchantClient {

    @Override
    public Result<MerchantVO> getMerchantById(Long id) {
        MerchantVO merchantVO = new MerchantVO();
        merchantVO.setId(id);
        merchantVO.setName("未知商家");
        return Result.success(merchantVO);
    }
} 